package com.zzxy.spring2g.controller;

import com.zzxy.spring2g.dao.impl.TeacherDaoImpl;
import com.zzxy.spring2g.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.security.PublicKey;
@Controller

public class TeacherController {
    @Autowired
    private ITeacherService teacherService;

//    public ITeacherService getTeacherService() {
//        return teacherService;
//    }
//
//    public void setTeacherService(ITeacherService teacherService) {
//        this.teacherService = teacherService;
//    }

    public  void register(){
//service
      teacherService.registerTeacher();
    }

}
